package com.sunwhite.easycoding.demo2;

public class FloatTest {
  public static void main(String[] args) {
    //
      float f1=1f;
      float f2=0.9f;
      float f3=0.8f;
      float f4=f1-f2;
    System.out.println(f4);
    System.out.println(f2-f3);
    System.out.println(new Float(1e-6).intValue());
    System.out.println(Math.abs(f4-(f2-f3))<1e-6);
  }
}
